|
Access report objects from a code
FastReport’ s objects (such as report page, band, memo-object) are not directly accessible from your code. This means that you cannot address the object by its name, as, for example, when you addressing to a button on your form. To address an object, it should be found with the help of the «TfrxReport.FindObject» method: var Memo1 := frxReport1.FindObject('Memo1')as TfrxMemoView; after that, one can address the object’s properties and methods. You can address the report’s pages using the «TfrxReport.Pages» property: var Page1 := frxReport1.Pages[0] as TfrxReportPage; |